package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 学生所在班级与课程（分班表）
 * </p>
 *
 * @author hpiggy
 * @since 2024-08-05
 */
@TableName("student_grade_history")
@ApiModel(value = "StudentGradeHistory对象", description = "学生所在班级与课程（分班表）")
@Data
public class StudentGradeHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("报读季度")
    private Integer quarterNum;

    @ApiModelProperty("对应报名订单id")
    private Long orderDetailId;

    private Long studentId;

    @ApiModelProperty("对应学校id")
    private Long schoolId;

    @ApiModelProperty("班级id")
    private Long gradeId;

    @ApiModelProperty("课程id")
    private Long courseId;

    @ApiModelProperty("1精品课，2智能课，3刷题班")
    private Integer lessonType;

    @ApiModelProperty("科目id")
    private Long subjectsId;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("班型(由于会存在与现有的查询语句有冲突，因此加了_new结尾)")
    private Long classTypeIdNew;

    @ApiModelProperty("开始日期")
    private LocalDate startDate;

    @ApiModelProperty("结束日期")
    private LocalDate endDate;

    @ApiModelProperty("使用课时")
    private Integer useCourseCount;

    @ApiModelProperty("1正常,2（转课）调班转出，3订单作废，4（转校）转出")
    private Integer status;

    @ApiModelProperty("0预分班,1在读，2转课（调班转出），3退费，4停课，5结课,6结班")
    private Integer readingStatus;

    @ApiModelProperty("是否预分班，0否，1添加了预分班，2添加了预分班的续报成功，3没有添加预分班的续报成功，4预分班的续报失败")
    private Integer isPresort;

    @ApiModelProperty("是否最后一条")
    private Integer isLast;

    @ApiModelProperty("是否补课（跨学期补课，统计率要排除掉）此字段作废，使用班级表里的字段")
    private Integer isMakeup;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("创建人id")
    private Long createdId;

    private Integer deleted;

    @ApiModelProperty("created_at")
    private LocalDateTime createdAt;

    @ApiModelProperty("updated_at")
    private LocalDateTime updatedAt;

    @ApiModelProperty("deleted_at")
    private LocalDateTime deletedAt;
}
